package com.scm.persist.mybatis;

import com.scm.persist.model.ScmProductDetailOms;
import com.scm.persist.model.ScmProductDetailOmsExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmProductDetailOmsMapper {
    int countByExample(ScmProductDetailOmsExample example);

    int deleteByExample(ScmProductDetailOmsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmProductDetailOms record);

    int insertSelective(ScmProductDetailOms record);

    List<ScmProductDetailOms> selectByExampleWithRowbounds(ScmProductDetailOmsExample example, RowBounds rowBounds);

    List<ScmProductDetailOms> selectByExample(ScmProductDetailOmsExample example);

    ScmProductDetailOms selectByPrimaryKey(Long id);

    ScmProductDetailOms selectByPid(@Param("tenantId") Long tenantId,@Param("scmProductId") Long productId);

    int updateByExampleSelective(@Param("record") ScmProductDetailOms record, @Param("example") ScmProductDetailOmsExample example);

    int updateByExample(@Param("record") ScmProductDetailOms record, @Param("example") ScmProductDetailOmsExample example);

    int updateByPrimaryKeySelective(ScmProductDetailOms record);

    int updateByPrimaryKey(ScmProductDetailOms record);
}